<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script>
		new Promise((resolve, reject)=>{
			reject('错误')
		})
		.then(value=>{
			console.log(value)
		})
		.catch(err=>{
			console.log(err)
		})
		.finally(()=>{
			console.log('结束了')
		})
	</script>
</html>
